Optimal. Leaf size=25 \[ -\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3255, 3286,
2686, 8} \begin {gather*} -\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2686
Rule 3255
Rule 3286
Rubi steps
\begin {align*} \int \frac {\cot ^2(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx &=\int \frac {\cot ^2(e+f x)}{\sqrt {a \cos ^2(e+f x)}} \, dx\\ &=\frac {\cos (e+f x) \int \cot (e+f x) \csc (e+f x) \, dx}{\sqrt {a \cos ^2(e+f x)}}\\ &=-\frac {\cos (e+f x) \text {Subst}(\int 1 \, dx,x,\csc (e+f x))}{f \sqrt {a \cos ^2(e+f x)}}\\ &=-\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 25, normalized size = 1.00 \begin {gather*} -\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 32, normalized size = 1.28
method | result | size |
default | \(-\frac {\cos \left (f x +e \right )}{\sin \left (f x +e \right ) \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f}\) | \(32\) |
risch | \(-\frac {2 i \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{\sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, f \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 98 vs.
\(2 (25) = 50\).
time = 0.57, size = 98, normalized size = 3.92 \begin {gather*} -\frac {2 \, {\left (\cos \left (f x + e\right ) \sin \left (2 \, f x + 2 \, e\right ) - \cos \left (2 \, f x + 2 \, e\right ) \sin \left (f x + e\right ) + \sin \left (f x + e\right )\right )} \sqrt {a}}{{\left (a \cos \left (2 \, f x + 2 \, e\right )^{2} + a \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, a \cos \left (2 \, f x + 2 \, e\right ) + a\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 36, normalized size = 1.44 \begin {gather*} -\frac {\sqrt {a \cos \left (f x + e\right )^{2}}}{a f \cos \left (f x + e\right ) \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cot ^{2}{\left (e + f x \right )}}{\sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 67 vs.
\(2 (25) = 50\).
time = 0.57, size = 67, normalized size = 2.68 \begin {gather*} \frac {\frac {\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{\mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right )} + \frac {1}{\mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}}{2 \, \sqrt {a} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 15.06, size = 37, normalized size = 1.48 \begin {gather*} -\frac {\sqrt {2\,a\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )}}{a\,f\,\sin \left (2\,e+2\,f\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________